const upload_url = ''
function upload(path) {
  console.log('in upload')
  wx.uploadFile({
    url: upload_url,//'https://example.weixin.qq.com/upload', //仅为示例，非真实的接口地址
    filePath: path,
    name: 'file',
    formData:{},
    success: function(res){
      var data = res.data
      //do something
    }
  })
}
export default {
  upload: upload
}